<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta content="" charset=UTF-8>
    <title>主页</title>
    <script type="application/javascript" src="/js/jquery.min.js"></script>
    <script type="application/javascript">
        alert("222");
        $(function(){
            alert("dsfhfsf");
        })

    </script>
</head>
<body>
欢迎你：<span th:text="${#session.getAttribute('user')}"></span>
<a th:href="@{/student/stu_add}">添加</a>
 <table width="700" colspan="0" cellpadding="5">
     <tr>
         <td>学号</td>
         <td>名称</td>
         <td>性别</td>
         <td>年龄</td>
         <td>操作</td>
     </tr>
     <tr th:each="stu:${students}">
         <td>[[${stu.sid}]]</td>
         <td>[[${stu.sname}]]</td>
         <td>[[${stu.gender}]]</td>
         <td>[[${stu.age}]]</td>
         <td>
             <a th:href="@{'/student/delete/'+${stu.sid}}">删除</a>
             <a th:href="@{'/student/update/'+${stu.sid}}">修改</a>
         </td>
     </tr>
 </table>
</body>
</html>